﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Table</title>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="plugins/bootstrap-table/css/bootstrap-table.min.css"/>
    <link rel="stylesheet" href="css/layui.css" media="all"/>
    <link rel="stylesheet" href="css/global.css" media="all">
    <link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.min.css">
</head>

<body>
<div class="admin-main">
    <form class="layui-form layui-form-pane" onsubmit="javascript:return false;">
        <div class="layui-form-item" style="margin-bottom:0px;">
            <label class="layui-form-label">表名</label>
            <div class="layui-input-inline">
                <input type="text" onchange="javascript:$('#btn_query').click();" class="layui-input" id="name">
            </div>
            <button class="layui-btn" id="btn_query">
                查询
            </button>
            <button class="layui-btn layui-btn-normal" id="btn_generate">
                生成代码
            </button>
            <button class="layui-btn layui-btn-normal" id="btn_generateLocal">
                生成本地代码
            </button>
            <button class="layui-btn layui-btn-warm" id="btn_customge">
                自定义生成模板代码
            </button>
        </div>
    </form>

    <table id="generatorTable">

    </table>
</div>

<form class="layui-form" id="customForm" style="display:none">
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">表名</label>
        <div class="layui-input-block">
            <textarea lay-verify="required" name="tableNames" id="tableNames" placeholder="请输入表名" class="layui-textarea"
                      style="height: 100px;width: 95%;" disabled></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">后端</label>
        <div class="layui-input-block">
            <input type="checkbox" value="osMapperXml" title="MapperXml" checked
                   lay-skin="primary">
            <input type="checkbox" value="osPoJava" title="PoJava" checked lay-skin="primary">
            <input type="checkbox" value="osQueryParamJava" title="QueryParamJava" checked lay-skin="primary">
            <input type="checkbox" value="osCurdParamJava" title="CurdParamJava" checked lay-skin="primary">
            <input type="checkbox" value="osMapperJava" title="MapperJava" checked lay-skin="primary">
            <input type="checkbox" value="osCtrlJava" title="CtrlJava" checked lay-skin="primary">
            <input type="checkbox" value="osServiceJava" title="ServiceJava" checked lay-skin="primary">
            <input type="checkbox" value="osServiceImplJava" title="ServiceImplJava" checked lay-skin="primary">

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">前端</label>
        <div class="layui-input-block">
            <input type="checkbox" value="frontRouterJs" title="RouterJs" checked lay-skin="primary">
            <input type="checkbox" value="frontApiJs" title="ApiJs" checked lay-skin="primary">
            <input type="checkbox" value="frontCreateVue" title="CreateVue" checked lay-skin="primary">
            <input type="checkbox" value="frontDetailVue" title="DetailVue" checked lay-skin="primary">
            <input type="checkbox" value="frontPageVue" title="PageVue" checked lay-skin="primary">
            <input type="checkbox" value="frontUpdateVue" title="UpdateVue" checked lay-skin="primary">
            <input type="checkbox" value="frontHistoryVue" title="HistoryVue" checked lay-skin="primary">
            <input type="checkbox" value="frontEnumsJs" title="EnumsJs" checked lay-skin="primary">

        </div>
    </div>
</form>

<script type="text/javascript" src="plugins/jquery.min.js"></script>
<script type="text/javascript" src="bootstrap.min.js"></script>
<script type="text/javascript" src="plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="layui.js"></script>
<script type="text/javascript" src="generator/generator.js"></script>
</body>

</html>
